package Demo4;

public class Test {
    public static void main(String[] args) {

        Student student = new Student("蒋金鑫",951218,24,95);
        Student student1 = new Student("王晨",960906,23,89);
        Comparable comparable = new Student();
        int N=comparable.compareTo(student,student1);
        System.out.println(N);

        News news1 = new News(12,"他来了","愤怒的直升机",56);
        News news2 = new News(11,"他走了","祖安文曲星君",89);
        Comparable comparable1 = new News();
        int N1=comparable1.compareTo(news1,news2);
        System.out.println(N1);
    }
}
